home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Online
/
Epic4
/
share
/
epic
/
help
/
6_functions
/
lastserver
< prev
next >
Wrap
Text File
|
2001-03-21
|
714b
|
29 lines
Synopsis:
$lastserver()
Technical:
This function shows the name of the last server to send you a message of
any kind. It only has an effect inside hooks.
Practical:
This function shows the name of the server sending the current message.
Like $userhost(), it s only useful inside hooks. It might be used to
indicate when a message is no coming from the current server.
Returns:
server name
Examples:
To indicate that a remote server is sending the NAMES reply:
on ^names "*" {
if ( lastserver() == S ) {
echo *** On $0: $1- \(from $lastserver()\)
} {
echo *** On $0: $1-
}
}
See Also:
userhost(6)